package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author cpf
 *
 */
@ApiModel(value = "Order对象", description = "")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单号")
    private String orderId;

    @ApiModelProperty("客户id")
    private String orderUserId;

    @ApiModelProperty("客户")
    private String orderUser;

    @ApiModelProperty("客户电话")
    private String orderUserPhone;

    @ApiModelProperty("订单状态")
    private String orderStatus;

    @ApiModelProperty("订单价格")
    private BigDecimal orderPrice;

    @ApiModelProperty("发货日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date goodSendTime;

    @ApiModelProperty("付款状态")
    private String payStatus;

    @ApiModelProperty("付款方式")
    private String payMethod;

    @ApiModelProperty("下单日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    public Integer getId() {
       return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public String getOrderId() {
       return orderId;
    }


    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }


    public String getOrderUserId() {
       return orderUserId;
    }


    public void setOrderUserId(String orderUserId) {
        this.orderUserId = orderUserId;
    }


    public String getOrderUser() {
       return orderUser;
    }


    public void setOrderUser(String orderUser) {
        this.orderUser = orderUser;
    }


    public String getOrderUserPhone() {
       return orderUserPhone;
    }


    public void setOrderUserPhone(String orderUserPhone) {
        this.orderUserPhone = orderUserPhone;
    }


    public String getOrderStatus() {
       return orderStatus;
    }


    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }


    public BigDecimal getOrderPrice() {
       return orderPrice;
    }


    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }


    public Date getGoodSendTime() {
       return goodSendTime;
    }


    public void setGoodSendTime(Date goodSendTime) {
        this.goodSendTime = goodSendTime;
    }


    public String getPayStatus() {
       return payStatus;
    }


    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }


    public String getPayMethod() {
       return payMethod;
    }


    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }


    public Date getCreateTime() {
       return createTime;
    }


    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Date getUpdateTime() {
       return updateTime;
    }


    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }



    @Override
    public String toString() {
        return "Order{" +
        "id=" + id +
        ", orderId=" + orderId +
        ", orderUserId=" + orderUserId +
        ", orderUser=" + orderUser +
        ", orderUserPhone=" + orderUserPhone +
        ", orderStatus=" + orderStatus +
        ", orderPrice=" + orderPrice +
        ", goodSendTime=" + goodSendTime +
        ", payStatus=" + payStatus +
        ", payMethod=" + payMethod +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
